import { loadGltf } from '../three-utils';

/**
 * 加载路网
 * @returns
 */
export const loadRoad = () => {
  return loadGltf({
    modelPath: '/model/road/model.glb',
  }).then((gltf) => {
    const group = gltf.scene;
    // TODO road没有贴图
    group.children[0].material.color.set('#333');
    group.children[1].material.color.set('#333');
    return group;
  });
};
